﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Configuration;

namespace WH.NurseSys.Report
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["userId"]))
            {
                LoginForm loginForm = new LoginForm();
                if (loginForm.ShowDialog() == DialogResult.Cancel)
                {
                    return;
                }
            }            
            Application.Run(new PatientListForm());
        }
    }
}
